package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.common.enums.SexEnum;
import lombok.Data;

import java.sql.Date;

/**
 * @author lai
 * @data 2021/11/17
 * @apiNote
 */
@TableName("sys_teacher")
@Data
public class Teacher {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String name;
    private SexEnum sex;
    private Date birth;
    private String phoneNumber;
    private String address;
    private String degree;
    private Date entryDate;
    private Date createTime;
    private Date updateTime;
    private String portrait;
}
